<?php

Yii::import('application.models._base.BaseComplaintMaster');

class ComplaintMaster extends BaseComplaintMaster
{
	public static function model($className=__CLASS__) {
		return parent::model($className);
	}
        
        
        public static function totalComplaint(){
            return ComplaintMaster::model()->count();
        }
        
        public static function ClosedComplaint(){
            return ComplaintMaster::model()->countByAttributes(array('actualstatus'=>'CLOSED'));
        }
}